package com.car.loan.project.xr.util.enums;

import java.util.Optional;

/**
 * @author huangding
 * @description
 * @date 2019/11/14 15:22
 */
public enum BusinessApostilleStatus {
    /**
     * 业务加签状态 业务审核状态0=未审核1=通过2=退回3=拒绝
     */
    INIT(0),
    PASS(1),
    GO_BACK(2),
    REJECT(3)
    ;


    BusinessApostilleStatus(
        int status) {
        this.status = status;
    }

    public static Optional<BusinessApostilleStatus> get(int status) {
        for (BusinessApostilleStatus businessAuditStatus : values()) {
            if (businessAuditStatus.status == status) {
                return Optional.of(businessAuditStatus);
            }
        }
        return Optional.empty();
    }




    ;
    public final int status;
}
